package cn.tedu.csmall.product.mapper;

import cn.tedu.csmall.product.pojo.entity.Spu;
import cn.tedu.csmall.product.pojo.entity.SpuDetail;
import cn.tedu.csmall.product.pojo.vo.SpuDetailListVO;
import cn.tedu.csmall.product.pojo.vo.SpuDetailStandardVO;
import cn.tedu.csmall.product.pojo.vo.SpuListVO;
import cn.tedu.csmall.product.pojo.vo.SpuStandardVO;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * ClassName: SpuMapper
 * Package: cn.tedu.csmall.product.mapper
 * Description
 *
 * @Author: 大傻
 * @Create:2022/11/26
 */
@Repository
public interface SpuMapper {
    int insert(Spu spu);
    int insertBatch(List<Spu> spus);
    int deleteById(Long id);
    int deleteByIds(Long[] ids);
    int update(Spu spu);

    int count();
    SpuStandardVO getStandardById(Long id);
    List<SpuListVO> list();
}
